package com.kunbo.cn.entity.core.purchase;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import com.kunbo.cn.entity.system.SysPermission;

import lombok.Data;

/**
 * 
 * <p>Title: Waybill</p>
 * <p>Description:销售运单实体模型 </p>
 * <p>Company: www.kunbo.cn</p> 
 * @author	fengze
 * @version 1.0
 */
@Entity
@Table(name="waybill_management")
@GenericGenerator(name = "jpa-uuid", strategy = "uuid")
@EntityListeners(AuditingEntityListener.class)
@Data
public class SaleWaybill implements Serializable{

	/** serialVersionUID*/
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(generator = "jpa-uuid")
    @Column(length = 32)
	private String id;//主键uuid
	private String waybillNumber;//运单号自动生成（CGYD+Time）
	private String saleOrderNumber;//销售订单号
	private String businessDate;//业务日期
	private String purchasingOrganization;//采购组织
	private String supplier;//供应商
	private Double receivingUnit;//收货单位
	private String materiel;//物料
	private String orderQuantity;//订单数量
	private String allowance;//余量
	private String transportUnit;//运输单位
	private String plateNumber;//车牌号 
	private String driver;//司机
	private String idNumber;//身份证号
	private String quantityOfArrival;//到货量
	private String typeOfShipping;//运输方式	
	private String rfid;//RFID射频识别
	private String remarks;//备注
	@CreatedDate
    private Date createTime;//创建时间
    @LastModifiedDate
    private Date lastModifiedTime;//修改时间

}

